//package com.zhengdongzulin.zuke.app.main.home
//
//import androidx.lifecycle.rxLifeScope
//import com.lxj.androidktx.livedata.StateLiveData
//import com.zhengdongzulin.zuke.app.Api
//import com.zhengdongzulin.zuke.app.data.ApartmentType
//import com.zhengdongzulin.zuke.app.data.UserInfo
//import com.zhengdongzulin.zuke.base.BaseViewModel
//import rxhttp.delay
//import rxhttp.wrapper.param.RxHttp
//import rxhttp.wrapper.param.toResponse
//
//class ApartmentTypeVm : BaseViewModel() {
//
//    var web_account_get_list: StateLiveData<MutableList<ApartmentType>> = StateLiveData()
//
//    fun web_account_get_list() {
//        rxLifeScope.launch(
//            {
//                var r = RxHttp.postJson(Api.WEB_ACCOUNT_GET_LIST)
//                    .toResponse<MutableList<ApartmentType>>()
//                    .await()
//                web_account_get_list.postValueAndSuccess(r)
//            }, {
//                assignment(it, web_account_get_list)
//            }
//        )
//    }
//
//}